package com.twu.biblioteca;

public class AccountMenuItem extends MenuItem {

    public AccountMenuItem() {
        description = "Account Information";
    }

    @Override
    public boolean controller(UserAccount sessionUser) {

        if (sessionUser.isActive()) {
            String name = "Tushar Garg";
            String email = "garg.tushar.05@gmail.com";
            String contactNo = "9891508667";
            System.out.println(name +"\n"+ email +"\n"+ contactNo);
        }
        else {
            System.out.println("Please talk to Librarian.Thank you");
        }

        return false;
    }
}